public class Main {
    public static void func(Animal animal){
        animal.eat();
    }
    public static void main(String[] args) {
       Dog dog=new Dog("gou");
       func(dog);
        System.out.println("========");
        Cat cat=new Cat("mao");
        func(cat);
    }
}
